#pragma once
#include <string.h>

class CGame_Object
{
private:
	int m_x;
	int m_y;
	int m_old_x;
	int m_old_y;
	char *m_Shape;

protected:
	int m_LR;
	int m_TB;

public:
	CGame_Object(void);
	virtual ~CGame_Object(void);

	inline void Get_Pos(int &x, int &y)
	{
		x	=	m_x;
		y	=	m_y;
	}
	inline void Set_Pos(int x, int y)
	{
		m_x	=	x;
		m_y	=	y;
	}

	inline void Get_Old_Pos(int &old_x, int &old_y )
	{
		old_x	=	m_old_x;
		old_y	=	m_old_y;
	}

	inline void Set_Old_Pos(int old_x, int old_y )
	{ 
		m_old_x = old_x;
		m_old_y = old_y;
	}

	inline char* Get_Shape()
	{ return m_Shape; }
	inline void Set_Shape(char c[])
	{ 
		m_Shape	=	new char[sizeof(c)];
		strcpy( m_Shape, c );
	}
	virtual bool frameMove();
	virtual void render();

};
